package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 保存语音用的类，保存到mongodb
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements java.io.Serializable {

    private static final long serialVersionUID = -8104587813820935315L;

    private ObjectId id; //主键id
    private Long aid;   //逻辑自增的音频id
    private Long userId; //发布该语音的用户id
    private String soundUrl; //音频文件，是一个地址
    private Integer remainSendTimes;  //今日剩余发送语音次数，默认10
    private Integer remainListenTimes;    //今日剩余收听语音次数，默认10
    private Long refresh;   //最新的刷新次数时间
    private Long created; //创建时间
}
